<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<c:import url="header.jsp">
  <c:param name="title" value="Založení nového fóra | Hokejové fórum pro všechny fanoušky"/>
</c:import>
<stripes:useActionBean var="l" binding="/forumAdd.action"/>

<div id="add-messages">
    <c:if test="${sessionScope.user != null}">
    <h2>Založení nového fóra:</h2>
       <stripes:form beanclass="action.AddForumActionBean" focus="">
        <table>
        <tr>
        <th>Název fóra</th>
        <td><stripes:text name="name" class="border"/></td>
        <td><stripes:errors field="name"/>${actionBean.errMsg}</td>
        </tr>
        <tr>
         <th>Text příspěvku</th>
         <td><stripes:textarea name="msg" class="border" rows="5" cols="87"/></td>
         <td><stripes:errors field="msg"/></td>
        </tr>
        <tr>
         <th></th>
         <td><stripes:submit name="add" value="Přidej"/></td>
        </tr>
       </table>
      </stripes:form>
</c:if>
    </div>
<c:import url="footer.jsp">
</c:import>